<script lang="ts" setup>
import { useI18n } from 'vue-i18n';
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
import enUS from '@arco-design/web-vue/es/locale/lang/en-us';

const { locale } = useI18n();

zhCN.datePicker.ok = '确认';
</script>

<template>
  <AConfigProvider :locale="locale === 'en-US' ? enUS : zhCN">
    <RouterView />
  </AConfigProvider>
</template>
